package lab02.test03;

import sun.reflect.generics.tree.VoidDescriptor;

public class Student {
    //属性：计算机成绩、数学成绩、英语成绩。
    float computerScore;
    float mathSorce;
    float englishSorce;




//求总分
   float sum(){
       return computerScore +mathSorce+englishSorce;
   }
//求平均分
    float average(){
       return (computerScore+mathSorce+englishSorce)/3;
    }
//Z最高分
    float maxSorce(){
        float max=computerScore>mathSorce? computerScore:mathSorce;
        max=max>englishSorce? max:englishSorce;
        return  max;
    }
//最低分
    float printStudent(){
        float min=computerScore<mathSorce?computerScore:mathSorce;
        min=min<englishSorce?min:englishSorce;
        return min;

    }

}
